<html>
    <head>
        <g:javascript library="yui"/>   
        <title><g:layoutTitle default="SPL" /></title>
        <link rel="stylesheet" href="${resource(dir:'css',file:'main.css')}" />
        <link rel="shortcut icon" href="${resource(dir:'images',file:'splico.ico')}" type="image/x-icon" />
        <g:layoutHead />
        <g:javascript library="application" />
        <gui:resources components="['menu']"/>

    <style type="text/css">

        /*
            Position and hide the Menu instance to prevent a flash of unstyled
            content when the page is loading.
        */

    div.yuimenu {

        position:dynamic;
        visibility: hidden;

    }

        /*
            Set the "zoom" property to "normal" since it is set to "1" by the
            ".example-container .bd" rule in yui.css and this causes a Menu
            instance's width to expand to 100% of the browser viewport.
        */

    div.yuimenu .bd {

        zoom: normal;

    }

    .yui-skin-sam  .yuimenubar {
        border: 1px solid #808080;
        font-size: 93%;
        line-height: 3;
        position:dynamic;
         
    }
   
    
    a.list {
    background: url(../images/skin/database_table.png) center left no-repeat;
    color: #333;
    padding-left: 25px;
    }
	
    </style>
</head>

<body class="yui-skin-sam">
	<div align="center" id="grailsLogo"><img width="600" src="${resource(dir:'images',file:'spl_v3.png')}" alt="Grails" border="0" /><br></div>		
      <gui:menubar id='myInnerMenubar' renderTo='innerMenu' autosubmenudisplay='true' submenualignment="['tr','br']">
        <gui:menuitem url="${createLink(uri: '/')}">Inicio</gui:menuitem>
       	<gui:submenu label='Listar'>
       	<gui:menuitem url="${createLink(uri: '/administrador/list')}">Administradores</gui:menuitem>
	            <gui:menuitem url="${createLink(uri: '/usuarioComum/list')}">Usuarios</gui:menuitem>	            
	    </gui:submenu>        
        <gui:submenu label='Cadastrar'>        
            <gui:menuitem url="${createLink(uri: '/administrador/create')}">Administrador</gui:menuitem>
             <gui:menuitem url="${createLink(uri: '/usuarioComum/create')}">Usuario</gui:menuitem> 
        </gui:submenu>
        <gui:submenu label='Consulta'>
            <gui:menuitem url="${createLink(uri: '/administrador/search')}">Rapida</gui:menuitem>
            <gui:submenu label='Consulta'>
            <gui:menuitem url="${createLink(uri: '/administrador/search_admin')}">Administrador</gui:menuitem>
             <gui:menuitem url="${createLink(uri: '/administrador/search_usuario')}">Usuario</gui:menuitem>
             </gui:submenu>
         </gui:submenu>  
         <gui:menuitem url="${createLink(uri: '/livro')}">Biblioteca</gui:menuitem>
          <gui:menuitem url="${createLink(uri: '/logout')}">Logout</gui:menuitem>
      </gui:menubar>
	</div>
    
        <div id="spinner" class="spinner" style="display:none;">
            <img src="${resource(dir:'images',file:'spinner.gif')}" alt="${message(code:'spinner.alt',default:'Loading...')}" />
        </div>
        
        <g:layoutBody />
                    
    </body>
</html>

